{% extends "base.html" %}
{% block title %}Password Change{% endblock %}

{% block content %}

{% if form.errors %}
<p>Your username and password didn't match. Please try again.</p>
{% endif %}

<form method="post" action=".">
<table>
<tr>
<td>{{ form.old_password.label_tag }}</td>
<td>{{ form.old_password }}</td>
</tr>
<tr>
<td>{{ form.new_password1.label_tag }}</td>
<td>{{ form.new_password1 }}</td>
</tr>
<tr>
<td>{{ form.new_password2.label_tag }}</td>
<td>{{ form.new_password2 }}</td>
</tr>
</table>

<input type="submit" value="Change" />
<input type="button" value="Cancel" onclick="javascript:window.location='/';"/>
<input type="hidden" name="next" value="/" />
</form>

{% endblock %}